//dom初始化
$(document).ready(function($) {
    rewrite_css();
});

window.onresize   = function(){
    rewrite_css();
}
//CSS重写
function rewrite_css(){
    $('.left-nav').css('height', $(window).height() - $('.header').height() + 'px');
}